package yzx.firstletter.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

public class LocalTask {

    private static final ExecutorService pool = new ThreadPoolExecutor(3, 6, 10, TimeUnit.SECONDS, new LinkedBlockingDeque<Runnable>());


    public static void exec(Runnable task){
        pool.execute(task);
    }

}
